<script setup lang="ts">
defineProps<{
  name: string
}>()
</script>

<template>
  <svg class="cp-icon" aria-hidden="true">
    <!-- #icon-文件夹名称-图片名称 -->
    <use :href="`#icon-${name}`" />
  </svg>
</template>

<style lang="scss" scoped>
.cp-icon {
  width: 1em;
  height: 1em;
}
</style>
